package aa.maven.me_reptile.base.param;

public enum  HttpResponseHeaderParam {
    ACCEPT_RANGES("Accept-Ranges",
            "表明服务器是否支持指定范围请求及哪种类型的分段请求",
            "Accept-Ranges: bytes"),
    AGE("Age",
            "从原始服务器到代理缓存形成的估算时间（以秒计，非负）",
            "Age: 12"),
    ALLOW("Allow",
            "对某网络资源的有效的请求行为，不允许则返回405",
            "Allow: GET, HEAD"),
    CACHE_CONTROL("Cache-Control",
            "告诉所有的缓存机制是否可以缓存及哪种类型",
            "Cache-Control: no-cache"),
    CONTENT_DISPOSITION("Content-Disposition",
            "就是当用户想把请求所得的内容存为一个文件的时候提供一个默认的文件名",
            "attachment; filename=“filename.xls”"),
    CONTENT_ENCODING("Content-Encoding",
            "web服务器支持的返回内容压缩编码类型。",
            "Content-Encoding: gzip"),
    CONTENT_LANGUAGE("Content-Language",
            "响应体的语言",
            "Content-Language: en,zh"),
    CONTENT_LENGTH("Content-Length",
            "响应体的长度",
            "Content-Length: 348"),
    CONTENT_LOCATION("Content-Location",
            "请求资源可替代的备用的另一地址",
            "Content-Location: /index.htm"),
    CONTENT_MD5("Content-MD5",
            "返回资源的MD5校验值",
            "Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ=="),
    CONTENT_RANGE("Content-Range",
            "在整个返回体中本部分的字节位置",
            "Content-Range: bytes 21010-47021/47022"),
    CONTENT_TYPE("Content-Type",
            "返回内容的MIME类型",
            "Content-Type: text/html; charset=utf-8"),
    DATE("Date",
            "原始服务器消息发出的时间",
            "Date: Tue, 15 Nov 2010 08:12:31 GMT"),
    ETAG("ETag",
            "请求变量的实体标签的当前值",
            "ETag: “737060cd8c284d8af7ad3082f209582d”"),
    EXPIRES("Expires",
            "响应过期的日期和时间",
            "Expires: Thu, 01 Dec 2010 16:00:00 GMT"),
    LAST_MODIFIED("Last-Modified",
            "请求资源的最后修改时间",
            "Last-Modified: Tue, 15 Nov 2010 12:45:26 GMT"),
    LOCATION("Location",
            "用来重定向接收方到非请求URL的位置来完成请求或标识新的资源",
            "Location: http://www.zcmhi.com/archives/94.html"),
    PRAGMA("Pragma",
            "包括实现特定的指令，它可应用到响应链上的任何接收方",
            "Pragma: no-cache"),
    PROXY_AUTHENTICATE("Proxy-Authenticate",
            "它指出认证方案和可应用到代理的该URL上的参数",
            "Proxy-Authenticate: Basic"),
    REFRESH("refresh",
            "应用于重定向或一个新的资源被创造，在5秒之后重定向（由网景提出，被大部分浏览器支持）",
            ""),
    RETRY_AFTER("Retry-After",
            "如果实体暂时不可取，通知客户端在指定时间之后再次尝试",
            "Retry-After: 120"),
    SERVER("Server",
            "web服务器软件名称",
            "Server: Apache/1.3.27 (Unix) (Red-Hat/Linux)"),
    SET_COOKIE("Set-Cookie",
            "设置Http Cookie",
            "Set-Cookie: UserID=JohnDoe; Max-Age=3600; Version=1"),
    TRAILER("Trailer",
            "指出头域在分块传输编码的尾部存在",
            "Trailer: Max-Forwards"),
    TRANSFER_ENCODING("Transfer-Encoding",
            "文件传输编码",
            "Transfer-Encoding:chunked"),
    VARY("Vary",
            "告诉下游代理是使用缓存响应还是从原始服务器请求",
            "Vary: *"),
    VIA("Via",
            "告知代理客户端响应是通过哪里发送的",
            "Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1)"),
    WARNING("Warning",
            "警告实体可能存在的问题",
            "Warning: 199 Miscellaneous warning"),
    WWW_AUTHENTICATE("WWW-Authenticate",
            "表明客户端请求实体应该使用的授权方案",
            "WWW-Authenticate: Basic"),

    ;
    private String name;
    private String desc;
    private String case_desc;

    HttpResponseHeaderParam(String name, String desc, String case_desc) {
        this.name = name;
        this.desc = desc;
        this.case_desc = case_desc;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getCase_desc() {
        return case_desc;
    }

    public void setCase_desc(String case_desc) {
        this.case_desc = case_desc;
    }
}
